﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

namespace CRM.Web.Admin
{
    public partial class Welcome : System.Web.UI.Page
    {
        

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Request.IsAuthenticated || string.IsNullOrEmpty(Page.User.Identity.Name))
            {
                Response.Redirect("/Login.aspx");
            } 

            if (!IsPostBack)
            {
                lit_name.Text = Page.User.Identity.Name;           
            }
        }

    }
}